home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Le Casse Dents.swf / scripts / frame_12 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  882 b   |  57 lines

  1. function chVitesse(vit)
  2. {
  3.    if(0 < speedx)
  4.    {
  5.       speedx = vit;
  6.    }
  7.    else
  8.    {
  9.       speedx = - vit;
  10.    }
  11.    if(0 < speedy)
  12.    {
  13.       speedy = vit;
  14.    }
  15.    else
  16.    {
  17.       speedy = - vit;
  18.    }
  19. }
  20. sound.gotoAndPlay(55);
  21. _root.redoublant = false;
  22. startDrag("/lance_carries",1,180,420,580,420);
  23. ballx = getProperty("/lance_carries", _X);
  24. bally = 400;
  25. vflu = 20;
  26. vnor = 10;
  27. vbon = 6;
  28. speedx = vnor;
  29. speedy = - vnor;
  30. ballwidth = 16;
  31. fluorwidth = 53;
  32. paddlewidth = 55;
  33. topBonus = false;
  34. speedBonusy = 4;
  35. bricknumber = 0;
  36. for(var dent in "Structures")
  37. {
  38.    var maDent = Structures[dent];
  39.    if(typeof maDent == "movieclip")
  40.    {
  41.       bricknumber++;
  42.    }
  43. }
  44. topSacre = false;
  45. topDent = false;
  46. vies.gotoAndPlay(carries);
  47. veut_sacrifier = 0;
  48. set("/:level",1);
  49. if(_root.redoublant)
  50. {
  51.    topFluor = 1;
  52. }
  53. else
  54. {
  55.    topFluor = 0;
  56. }
  57.